mouse_id = 5;
session = 6;

data = load_lvd('\\keller-rig1-ana\RawData\wangbo\VM_Training\BW-26.lvd');

vel_act = diff(data(2,:));
vel_act(vel_act>5) = vel_act(vel_act>5)-10;
vel_act(vel_act<-5) = vel_act(vel_act<-5)+10;
vel_act = smooth2(vel_act,1000);

vel_pas = diff(data(3,:));
vel_pas(vel_pas>5) = vel_pas(vel_pas>5)-10;
vel_pas(vel_pas<-5) = vel_pas(vel_pas<-5)+10;
vel_pas = smooth2(vel_pas,1000);

vel_a{mouse_id,session} = vel_act;
vel_p{mouse_id,session} = vel_pas;